package com.mby.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by noah on 2017/8/14.
 */

@Document(collection = "sequences")
public class Sequence{

    @Id
    private String id;
    @Indexed
    private String sequenceName;
    private int sequenceNext;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSequenceName() {
        return sequenceName;
    }

    public void setSequenceName(String sequenceName) {
        this.sequenceName = sequenceName;
    }

    public int getSequenceNext() {
        return sequenceNext;
    }

    public void setSequenceNext(int sequenceNext) {
        this.sequenceNext = sequenceNext;
    }
}
